// Not included in Base Gird object.
// Direction to delta tileXY

const ODD_R = [
    [
        [+1, 0],
        [0, +1],
        [-1, +1],
        [-1, 0],
        [-1, -1],
        [0, -1]
    ],
    [
        [+1, 0],
        [+1, +1],
        [0, +1],
        [-1, 0],
        [0, -1],
        [+1, -1]
    ]
];
const EVEN_R = [
    [
        [+1, 0],
        [+1, +1],
        [0, +1],
        [-1, 0],
        [0, -1],
        [+1, -1]
    ],
    [
        [+1, 0],
        [0, +1],
        [-1, +1],
        [-1, 0],
        [-1, -1],
        [0, -1]
    ]
];
const ODD_Q = [
    [
        [+1, 0],
        [0, +1],
        [-1, 0],
        [-1, -1],
        [0, -1],
        [+1, -1]
    ],
    [
        [+1, +1],
        [0, +1],
        [-1, +1],
        [-1, 0],
        [0, -1],
        [+1, 0]
    ]
];
const EVEN_Q = [
    [
        [+1, +1],
        [0, +1],
        [-1, +1],
        [-1, 0],
        [0, -1],
        [+1, 0]
    ],
    [
        [+1, 0],
        [0, +1],
        [-1, 0],
        [-1, -1],
        [0, -1],
        [+1, -1]
    ]
];
const Neighbors = [
    ODD_R,
    EVEN_R,
    ODD_Q,
    EVEN_Q
];

// Neighbors[mode][parity][dir]: [x/y]

export default Neighbors;